]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/util: Add touch_file_async() helper
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 23 Mar 2020 16:57:38 +0000 (17:57 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 25 Mar 2020 20:03:01 +0000 (20:03 +0000)
commitf52574bd28ba479fd2ccc847ecf9b17c64eeacf3
treeba7428ee0742f0b222b209943577c19972b63e02
parente6a814fac8570c86bc283750f39a93cb079d9609
shell/util: Add touch_file_async() helper

Add a small helper method to asynchronously "touch" a file and return
whether the file was created or not.

As g_file_make_directory_with_parents() doesn't have an async variant,
we need a C helper to make the entire operation non-blocking.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2432
src/shell-util.c
src/shell-util.h